function [newShape R] = rePositionShape(shape, s, degree, T)
r= degree*pi/180;
R = [cos(r) -sin(r); sin(r) cos(r)]; 
[y x] = size(shape);
newShape = R*(shape*s) + repmat(T,1, x);